<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 300px;
        overflow: auto;
        position: relative;
        background-color: red;
      }
      .content {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        background-color: blue;
      }
    </style>
  </head>
  <body>
    <div class="box" style="height:5000px">
      <div class="scrollbar"></div>
      <div class="content" style="height:500px"></div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script></script>
  </body>
</html>
